﻿using System;
using System.Collections.Generic;
using System.ServiceModel;
using WcfService1.DTO;

namespace WcfService1
{
    // NOTE: You can use the "Rename" command on the "Refactor" DeliveryType to change the interface name "IDeliveryTypeServices" in both code and config file together.
    [ServiceContract]
    public interface IDeliveryTypeServices
    {
        [OperationContract]
        List<DeliveryTypeDTO> GetList(int page, out long recordCount, string sortProperty = null,
                                      string sortType = "ASC");

        [OperationContract]
        bool Save(DeliveryTypeDTO DeliveryType);

        [OperationContract]
        bool Delete(DeliveryTypeDTO DeliveryType);

        [OperationContract]
        List<DeliveryTypeDTO> GetListByCriteria(Dictionary<String, Object> criteria, string expression, int page,
                                                out long recordCount);

        [OperationContract]
        List<DeliveryTypeDTO> GetAllDeliveryType();

        [OperationContract]
        DeliveryTypeDTO GetDeliveryType(string kodeDeliveryType);

        [OperationContract]
        List<DeliveryTypeDTO> GetDeliveryTypeList(string kodeDeliveryType);
    }
}